﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Using_collections
{
    class Person : EntityBase
    {
        public Person() : base()
        {
            this.Aquaintances = new List<Person>();
        }


        public string Name { get; set; }
        public string City { get; set; }

        public IList<Person> Aquaintances { get; private set; }


        public override string ToString()
        {
            return string.Format("{0} in {1}, {2} aquaintances",
                this.Name,
                this.City,
                this.Aquaintances.Count);
        }
    }
}
